﻿using System;
using System.Linq;
using System.Windows;
using Microsoft.Phone.Controls;

namespace TTApp.Phone.Silverlight.Hexagons
{
    public partial class Guide : PhoneApplicationPage
    {
        public Guide()
        {
            InitializeComponent();
        }

        private void OnBackToMainMenuRectTap(object sender, System.Windows.Input.GestureEventArgs args)
        {
            NavigationService.GoBack();
        }

        private void OnNextToFrame2RectTap(object sender, System.Windows.Input.GestureEventArgs args)
        {
            frame1.Visibility = Visibility.Collapsed;
            frame2.Visibility = Visibility.Visible;
        }

        private void OnBackToFrame1RectTap(object sender, System.Windows.Input.GestureEventArgs e)
        {
            frame2.Visibility = Visibility.Collapsed;
            frame1.Visibility = Visibility.Visible;
        }

        private void OnNextToMainMenuRectTap(object sender, System.Windows.Input.GestureEventArgs e)
        {
            NavigationService.GoBack();
        }
    }
}